﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace welding
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new mainForm());

            int ar = 0;
            login lgn = new login();
            lgn.ShowDialog();

            if (lgn.DialogResult == DialogResult.OK)
            {
                ar = lgn.access_right;
                Application.Run(new mainForm(ar, lgn.user_name, lgn.user_id, lgn.device_name, lgn.barcode_num, lgn.barcode_names, lgn.station_num, lgn.bprint_barcode, lgn.planQty, lgn.productionDatas, lgn.ShiftStartTime));
            }
            else
            {
                return;
            }
        }
    }
}
